﻿using OpSystem.common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OF.Component.Model;
using OF.Component.BLL;

namespace OpSystem.manage.authority
{
    
    public partial class Authoritysystem : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CheckPageCode("10101");
            if (!Page.IsPostBack)
            {
                MyBind();
            }
        }

        private void MyBind()
        {
            int intCount = 0;
            string where = " IsActive=1";
            IList<AuthoritySystemInfo> list = AuthoritySystemOperate.Search(out intCount, AspNetPager1.CurrentPageIndex, this.AspNetPager1.PageSize, where, "SystemID", true);
            AspNetPager1.RecordCount = intCount;
            this.rptList.DataSource = list;
            this.rptList.DataBind();
        }

        protected void AspNetPager1_PageChanged(object sender, EventArgs e)
        {
            MyBind();
        }

    }
}